﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_DMKhachHang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("b")]
        private Panel _b;
        [AccessedThroughProperty("Button1")]
        private Button _Button1;
        [AccessedThroughProperty("Button2")]
        private Button _Button2;
        [AccessedThroughProperty("C1FlexGrid1")]
        private C1.Win.C1FlexGrid.C1FlexGrid _C1FlexGrid1;
        [AccessedThroughProperty("CboKV")]
        private ComboBox _CboKV;
        [AccessedThroughProperty("CboLH")]
        private ComboBox _CboLH;
        [AccessedThroughProperty("CboNhanVienKinhDoanh")]
        private ComboBox _CboNhanVienKinhDoanh;
        [AccessedThroughProperty("CboNKD")]
        private ComboBox _CboNKD;
        [AccessedThroughProperty("CboTinhThanh")]
        private ComboBox _CboTinhThanh;
        [AccessedThroughProperty("CheckBox1")]
        private CheckBox _CheckBox1;
        [AccessedThroughProperty("CKHanThanhToan")]
        private CheckBox _CKHanThanhToan;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdRefresh")]
        private ToolStripButton _CmdRefresh;
        [AccessedThroughProperty("ComboBox1")]
        private ComboBox _ComboBox1;
        [AccessedThroughProperty("ComboBox2")]
        private ComboBox _ComboBox2;
        [AccessedThroughProperty("ComboBox3")]
        private ComboBox _ComboBox3;
        [AccessedThroughProperty("ComboBox4")]
        private ComboBox _ComboBox4;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label21")]
        private Label _Label21;
        [AccessedThroughProperty("Label22")]
        private Label _Label22;
        [AccessedThroughProperty("Label23")]
        private Label _Label23;
        [AccessedThroughProperty("Label24")]
        private Label _Label24;
        [AccessedThroughProperty("Label25")]
        private Label _Label25;
        [AccessedThroughProperty("Label26")]
        private Label _Label26;
        [AccessedThroughProperty("Label27")]
        private Label _Label27;
        [AccessedThroughProperty("Label28")]
        private Label _Label28;
        [AccessedThroughProperty("Label29")]
        private Label _Label29;
        [AccessedThroughProperty("Label30")]
        private Label _Label30;
        [AccessedThroughProperty("Label31")]
        private Label _Label31;
        [AccessedThroughProperty("Label32")]
        private Label _Label32;
        [AccessedThroughProperty("Label33")]
        private Label _Label33;
        [AccessedThroughProperty("Label34")]
        private Label _Label34;
        [AccessedThroughProperty("Label35")]
        private Label _Label35;
        [AccessedThroughProperty("Label36")]
        private Label _Label36;
        [AccessedThroughProperty("Label37")]
        private Label _Label37;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("NumHanThanhToan")]
        private NumericUpDown _NumHanThanhToan;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("TextBox1")]
        private TextBox _TextBox1;
        [AccessedThroughProperty("TextBox10")]
        private TextBox _TextBox10;
        [AccessedThroughProperty("TextBox11")]
        private TextBox _TextBox11;
        [AccessedThroughProperty("TextBox12")]
        private TextBox _TextBox12;
        [AccessedThroughProperty("TextBox2")]
        private TextBox _TextBox2;
        [AccessedThroughProperty("TextBox3")]
        private TextBox _TextBox3;
        [AccessedThroughProperty("TextBox4")]
        private TextBox _TextBox4;
        [AccessedThroughProperty("TextBox5")]
        private TextBox _TextBox5;
        [AccessedThroughProperty("TextBox6")]
        private TextBox _TextBox6;
        [AccessedThroughProperty("TextBox7")]
        private TextBox _TextBox7;
        [AccessedThroughProperty("TextBox8")]
        private TextBox _TextBox8;
        [AccessedThroughProperty("TextBox9")]
        private TextBox _TextBox9;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtSearchCode")]
        private TextBox _TxtSearchCode;
        [AccessedThroughProperty("TxtSearchMST")]
        private TextBox _TxtSearchMST;
        [AccessedThroughProperty("TxtSearchName")]
        private TextBox _TxtSearchName;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        public bool bLoaded;
        private object cFrmCall;
        private DataView cFrmData;
        private string cFrmKhoa;
        private string cFrmKhoaOld;
        private string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        private clsDMDoiTuong objDMKH;
        private clsDMLienHeDoiTuong objDMLHDT;
        private string pKhoaDoiTuong;

        public Frm_DMKhachHang()
        {
            base.Load += new EventHandler(this.Frm_DMKhachHang_Load);
            base.KeyDown += new KeyEventHandler(this.Frm_DMKhachHang_KeyDown);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.bLoaded = false;
            this.cFrmKhoaOld = "";
            this.cFrmKhoa = "";
            this.pKhoaDoiTuong = "";
            this.cFrmTask = "";
            this.mAllowEdit = true;
            this.mAllowDel = false;
            this.objDMKH = new clsDMDoiTuong();
            this.objDMLHDT = new clsDMLienHeDoiTuong();
            this.InitializeComponent();
        }

        private void CboKV_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CboLH_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CboNhanVienKinhDoanh_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CboNKD_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CboTinhThanh_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_KhachHang.cFrmKhoa = "";
            MyProject.Forms.Frm_KhachHang.cFrmTask = "I";
            MyProject.Forms.Frm_KhachHang.ShowDialog();
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                if (this.objDMKH.WasUsed(this.cFrmKhoa))
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00f4ng tin n\x00e0y đ\x00e3 được sử dụng, bạn kh\x00f4ng thể x\x00f3a!", ""));
                }
                else if (LVYModule.ConfirmDelete("") && this.objDMKH.DelData(this.cFrmKhoa))
                {
                    this.VSList.RemoveItem(this.VSList.Row);
                }
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                MyProject.Forms.Frm_KhachHang.cFrmKhoa = Conversions.ToString(this.VSList[this.VSList.Row, 0]);
                MyProject.Forms.Frm_KhachHang.cFrmTask = "U";
                MyProject.Forms.Frm_KhachHang.ShowDialog();
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void CmdHelp_Click(object sender, EventArgs e)
        {
            LVYModule.ShowHelp(@"DANHMUCDUNGCHUNG\DANHMUC\KHACHHANG.mht");
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DKKhachHang.Show();
        }

        private void CmdRefresh_Click(object sender, EventArgs e)
        {
            this.LoadData();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_DMKhachHang_KeyDown(object sender, KeyEventArgs e)
        {
        }

        private void Frm_DMKhachHang_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                this.Cursor = Cursors.Default;
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.CmdDel.Enabled = this.mAllowDel;
                this.CmdEdit.Enabled = this.mAllowEdit;
                this.CmdAdd.Enabled = this.mAllowAdd;
                BuildComboModule.BuildCombo(this.CboNKD, modGeneral.ListDanhMuc.NganhKinhDoanh, true, "", "");
                BuildComboModule.BuildCombo(this.CboKV, modGeneral.ListDanhMuc.KhuVuc, true, "", "");
                BuildComboModule.BuildCombo(this.CboLH, modGeneral.ListDanhMuc.LoaiKhachHang, true, "", "");
                BuildComboModule.BuildCombo(this.CboTinhThanh, modGeneral.ListDanhMuc.TinhThanh, true, "", "");
                BuildComboModule.BuildCombo(this.CboNhanVienKinhDoanh, modGeneral.ListDanhMuc.DoiTuongNhanVien, true, "", "");
                this.LoadData();
                this.bLoaded = true;
                this.Cursor = Cursors.Default;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_DMKhachHang));
            this.GroupBox2 = new GroupBox();
            this.Button1 = new Button();
            this.Button2 = new Button();
            this.C1FlexGrid1 = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Label20 = new Label();
            this.TextBox1 = new TextBox();
            this.Label21 = new Label();
            this.Label22 = new Label();
            this.TextBox2 = new TextBox();
            this.Label23 = new Label();
            this.TextBox3 = new TextBox();
            this.TextBox4 = new TextBox();
            this.Label24 = new Label();
            this.TextBox5 = new TextBox();
            this.Label25 = new Label();
            this.CheckBox1 = new CheckBox();
            this.TextBox6 = new TextBox();
            this.ComboBox1 = new ComboBox();
            this.TextBox7 = new TextBox();
            this.Label26 = new Label();
            this.ComboBox2 = new ComboBox();
            this.Label27 = new Label();
            this.Label28 = new Label();
            this.TextBox8 = new TextBox();
            this.Label29 = new Label();
            this.ComboBox3 = new ComboBox();
            this.ComboBox4 = new ComboBox();
            this.Label30 = new Label();
            this.Label31 = new Label();
            this.Label32 = new Label();
            this.TextBox9 = new TextBox();
            this.Label33 = new Label();
            this.TextBox10 = new TextBox();
            this.Label34 = new Label();
            this.TextBox11 = new TextBox();
            this.Label35 = new Label();
            this.TextBox12 = new TextBox();
            this.Label36 = new Label();
            this.VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1 = new Panel();
            this.TxtSearchMST = new TextBox();
            this.TxtSearchName = new TextBox();
            this.TxtSearchCode = new TextBox();
            this.b = new Panel();
            this.CboNhanVienKinhDoanh = new ComboBox();
            this.Label2 = new Label();
            this.NumHanThanhToan = new NumericUpDown();
            this.CboTinhThanh = new ComboBox();
            this.Label37 = new Label();
            this.CboNKD = new ComboBox();
            this.Label14 = new Label();
            this.CboLH = new ComboBox();
            this.Label5 = new Label();
            this.CboKV = new ComboBox();
            this.Label1 = new Label();
            this.CKHanThanhToan = new CheckBox();
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripButton();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            this.CmdRefresh = new ToolStripButton();
            this.GroupBox2.SuspendLayout();
            this.C1FlexGrid1.BeginInit();
            this.VSList.BeginInit();
            this.Panel1.SuspendLayout();
            this.b.SuspendLayout();
            this.NumHanThanhToan.BeginInit();
            this.ToolStrip1.SuspendLayout();
            this.SuspendLayout();
            this.GroupBox2.Controls.Add(this.Button1);
            this.GroupBox2.Controls.Add(this.Button2);
            this.GroupBox2.Controls.Add(this.C1FlexGrid1);
            Point point = new Point(3, 0x16f);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            Size size = new Size(0x19d, 0x8e);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 0x8e;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Li\x00ean hệ ";
            point = new Point(0x54, 0x72);
            this.Button1.Location = point;
            this.Button1.Name = "Button1";
            size = new Size(0x48, 0x16);
            this.Button1.Size = size;
            this.Button1.TabIndex = 0x13;
            this.Button1.Text = "X\x00f3a";
            this.Button1.UseVisualStyleBackColor = true;
            point = new Point(5, 0x72);
            this.Button2.Location = point;
            this.Button2.Name = "Button2";
            size = new Size(0x4a, 0x16);
            this.Button2.Size = size;
            this.Button2.TabIndex = 0x12;
            this.Button2.Text = "Th\x00eam";
            this.Button2.UseVisualStyleBackColor = true;
            this.C1FlexGrid1.AllowEditing = false;
            this.C1FlexGrid1.AutoResize = false;
            this.C1FlexGrid1.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.C1FlexGrid1.ColumnInfo = "5,0,0,0,0,85,Columns:0{Caption:\"Khoa\";Visible:False;}\t1{Width:110;Caption:\"T\x00ean\";}\t2{Width:76;Caption:\"Chức danh\";}\t3{Caption:\"Điện thọai\";}\t4{Caption:\"Email\";}\t";
            this.C1FlexGrid1.ExtendLastCol = true;
            point = new Point(5, 0x11);
            this.C1FlexGrid1.Location = point;
            this.C1FlexGrid1.Name = "C1FlexGrid1";
            this.C1FlexGrid1.Rows.Count = 1;
            this.C1FlexGrid1.Rows.DefaultSize = 0x11;
            size = new Size(0x196, 0x5e);
            this.C1FlexGrid1.Size = size;
            this.C1FlexGrid1.StyleInfo = manager.GetString("C1FlexGrid1.StyleInfo");
            this.C1FlexGrid1.TabIndex = 0x11;
            this.Label20.AutoSize = true;
            point = new Point(13, 10);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(0x52, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 0x8d;
            this.Label20.Text = "M\x00e3 kh\x00e1ch h\x00e0ng";
            point = new Point(0x75, 320);
            this.TextBox1.Location = point;
            this.TextBox1.Name = "TextBox1";
            size = new Size(0x111, 20);
            this.TextBox1.Size = size;
            this.TextBox1.TabIndex = 0x10;
            this.Label21.AutoSize = true;
            point = new Point(11, 0x148);
            this.Label21.Location = point;
            this.Label21.Name = "Label21";
            size = new Size(0x2e, 13);
            this.Label21.Size = size;
            this.Label21.TabIndex = 140;
            this.Label21.Text = "Website";
            this.Label22.AutoSize = true;
            point = new Point(0xe8, 0x113);
            this.Label22.Location = point;
            this.Label22.Name = "Label22";
            size = new Size(0x18, 13);
            this.Label22.Size = size;
            this.Label22.TabIndex = 0x8b;
            this.Label22.Text = "Fax";
            point = new Point(0x75, 0x128);
            this.TextBox2.Location = point;
            this.TextBox2.Name = "TextBox2";
            size = new Size(0x111, 20);
            this.TextBox2.Size = size;
            this.TextBox2.TabIndex = 15;
            this.Label23.AutoSize = true;
            point = new Point(11, 0x130);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            size = new Size(0x20, 13);
            this.Label23.Size = size;
            this.Label23.TabIndex = 0x8a;
            this.Label23.Text = "Email";
            point = new Point(0x128, 0x110);
            this.TextBox3.Location = point;
            this.TextBox3.Name = "TextBox3";
            size = new Size(0x5e, 20);
            this.TextBox3.Size = size;
            this.TextBox3.TabIndex = 14;
            point = new Point(0x75, 0x110);
            this.TextBox4.Location = point;
            this.TextBox4.Name = "TextBox4";
            size = new Size(0x67, 20);
            this.TextBox4.Size = size;
            this.TextBox4.TabIndex = 13;
            this.Label24.AutoSize = true;
            point = new Point(12, 0x113);
            this.Label24.Location = point;
            this.Label24.Name = "Label24";
            size = new Size(0x37, 13);
            this.Label24.Size = size;
            this.Label24.TabIndex = 0x89;
            this.Label24.Text = "Điện thoại";
            point = new Point(0x75, 0xe4);
            this.TextBox5.Location = point;
            this.TextBox5.Multiline = true;
            this.TextBox5.Name = "TextBox5";
            size = new Size(0x111, 40);
            this.TextBox5.Size = size;
            this.TextBox5.TabIndex = 12;
            this.Label25.AutoSize = true;
            point = new Point(12, 0xee);
            this.Label25.Location = point;
            this.Label25.Name = "Label25";
            size = new Size(40, 13);
            this.Label25.Size = size;
            this.Label25.TabIndex = 0x88;
            this.Label25.Text = "Địa chỉ";
            this.CheckBox1.AutoSize = true;
            point = new Point(0x128, 10);
            this.CheckBox1.Location = point;
            this.CheckBox1.Name = "CheckBox1";
            size = new Size(0x38, 0x11);
            this.CheckBox1.Size = size;
            this.CheckBox1.TabIndex = 2;
            this.CheckBox1.Text = "Active";
            this.CheckBox1.UseVisualStyleBackColor = true;
            point = new Point(0x128, 0x9b);
            this.TextBox6.Location = point;
            this.TextBox6.Name = "TextBox6";
            size = new Size(0x5d, 20);
            this.TextBox6.Size = size;
            this.TextBox6.TabIndex = 9;
            this.TextBox6.TextAlign = HorizontalAlignment.Right;
            this.ComboBox1.FormattingEnabled = true;
            point = new Point(0x75, 130);
            this.ComboBox1.Location = point;
            this.ComboBox1.Name = "ComboBox1";
            size = new Size(0x110, 0x15);
            this.ComboBox1.Size = size;
            this.ComboBox1.TabIndex = 7;
            point = new Point(0x75, 0x158);
            this.TextBox7.Location = point;
            this.TextBox7.Name = "TextBox7";
            size = new Size(0x111, 20);
            this.TextBox7.Size = size;
            this.TextBox7.TabIndex = 0x11;
            this.Label26.AutoSize = true;
            point = new Point(13, 0x15c);
            this.Label26.Location = point;
            this.Label26.Name = "Label26";
            size = new Size(0x2c, 13);
            this.Label26.Size = size;
            this.Label26.TabIndex = 0x7f;
            this.Label26.Text = "Ghi ch\x00fa";
            this.ComboBox2.FormattingEnabled = true;
            point = new Point(0x75, 0xcb);
            this.ComboBox2.Location = point;
            this.ComboBox2.Name = "ComboBox2";
            size = new Size(0x111, 0x15);
            this.ComboBox2.Size = size;
            this.ComboBox2.TabIndex = 11;
            this.Label27.AutoSize = true;
            point = new Point(12, 0xcf);
            this.Label27.Location = point;
            this.Label27.Name = "Label27";
            size = new Size(0x61, 13);
            this.Label27.Size = size;
            this.Label27.TabIndex = 0x7e;
            this.Label27.Text = "Nh\x00e2n vi\x00ean theo d\x00f5i";
            this.Label28.AutoSize = true;
            point = new Point(0xdd, 0x9e);
            this.Label28.Location = point;
            this.Label28.Name = "Label28";
            size = new Size(0x3d, 13);
            this.Label28.Size = size;
            this.Label28.TabIndex = 0x7d;
            this.Label28.Text = "Giới hạn nợ";
            point = new Point(0x75, 0xb3);
            this.TextBox8.Location = point;
            this.TextBox8.Name = "TextBox8";
            size = new Size(0x66, 20);
            this.TextBox8.Size = size;
            this.TextBox8.TabIndex = 10;
            this.TextBox8.TextAlign = HorizontalAlignment.Right;
            this.Label29.AutoSize = true;
            point = new Point(12, 0xb7);
            this.Label29.Location = point;
            this.Label29.Name = "Label29";
            size = new Size(0x51, 13);
            this.Label29.Size = size;
            this.Label29.TabIndex = 0x7c;
            this.Label29.Text = "Hạn thanh to\x00e1n";
            this.ComboBox3.FormattingEnabled = true;
            point = new Point(0x75, 80);
            this.ComboBox3.Location = point;
            this.ComboBox3.Name = "ComboBox3";
            size = new Size(0x110, 0x15);
            this.ComboBox3.Size = size;
            this.ComboBox3.TabIndex = 5;
            this.ComboBox4.FormattingEnabled = true;
            point = new Point(0x75, 0x69);
            this.ComboBox4.Location = point;
            this.ComboBox4.Name = "ComboBox4";
            size = new Size(0x110, 0x15);
            this.ComboBox4.Size = size;
            this.ComboBox4.TabIndex = 6;
            this.Label30.AutoSize = true;
            point = new Point(12, 0x86);
            this.Label30.Location = point;
            this.Label30.Name = "Label30";
            size = new Size(90, 13);
            this.Label30.Size = size;
            this.Label30.TabIndex = 0x7b;
            this.Label30.Text = "Loại  kh\x00e1ch h\x00e0ng";
            this.Label31.AutoSize = true;
            point = new Point(12, 0x6c);
            this.Label31.Location = point;
            this.Label31.Name = "Label31";
            size = new Size(0x2f, 13);
            this.Label31.Size = size;
            this.Label31.TabIndex = 0x7a;
            this.Label31.Text = "Khu vực";
            this.Label32.AutoSize = true;
            point = new Point(12, 0x54);
            this.Label32.Location = point;
            this.Label32.Name = "Label32";
            size = new Size(0x27, 13);
            this.Label32.Size = size;
            this.Label32.TabIndex = 0x79;
            this.Label32.Text = "Ng\x00e0nh";
            point = new Point(0x75, 0x9b);
            this.TextBox9.Location = point;
            this.TextBox9.Name = "TextBox9";
            size = new Size(0x66, 20);
            this.TextBox9.Size = size;
            this.TextBox9.TabIndex = 8;
            this.Label33.AutoSize = true;
            point = new Point(12, 0x9f);
            this.Label33.Location = point;
            this.Label33.Name = "Label33";
            size = new Size(0x3f, 13);
            this.Label33.Size = size;
            this.Label33.TabIndex = 120;
            this.Label33.Text = "M\x00e3 số  thuế";
            point = new Point(0x75, 0x38);
            this.TextBox10.Location = point;
            this.TextBox10.Name = "TextBox10";
            size = new Size(0x110, 20);
            this.TextBox10.Size = size;
            this.TextBox10.TabIndex = 4;
            this.Label34.AutoSize = true;
            point = new Point(12, 0x3b);
            this.Label34.Location = point;
            this.Label34.Name = "Label34";
            size = new Size(0x54, 13);
            this.Label34.Size = size;
            this.Label34.TabIndex = 0x71;
            this.Label34.Text = "T\x00ean (Tiếng Anh)";
            point = new Point(0x75, 0x20);
            this.TextBox11.Location = point;
            this.TextBox11.Name = "TextBox11";
            size = new Size(0x110, 20);
            this.TextBox11.Size = size;
            this.TextBox11.TabIndex = 3;
            this.Label35.AutoSize = true;
            point = new Point(12, 0x22);
            this.Label35.Location = point;
            this.Label35.Name = "Label35";
            size = new Size(0x53, 13);
            this.Label35.Size = size;
            this.Label35.TabIndex = 0x70;
            this.Label35.Text = "T\x00ean (Tiếng Việt)";
            point = new Point(0x75, 7);
            this.TextBox12.Location = point;
            this.TextBox12.Name = "TextBox12";
            size = new Size(0x67, 20);
            this.TextBox12.Size = size;
            this.TextBox12.TabIndex = 1;
            this.Label36.AutoSize = true;
            point = new Point(0x23, 0x6d);
            this.Label36.Location = point;
            this.Label36.Name = "Label36";
            size = new Size(0x16, 13);
            this.Label36.Size = size;
            this.Label36.TabIndex = 0x6f;
            this.Label36.Text = "Mã";
            this.VSList.AllowEditing = false;
            this.VSList.AutoResize = false;
            this.VSList.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSList.ColumnInfo = manager.GetString("VSList.ColumnInfo");
            this.VSList.Dock = DockStyle.Fill;
            this.VSList.ExtendLastCol = true;
            this.VSList.FocusRect = FocusRectEnum.None;
            point = new Point(0, 0x44);
            this.VSList.Location = point;
            this.VSList.Name = "VSList";
            this.VSList.Rows.Count = 1;
            this.VSList.Rows.DefaultSize = 0x11;
            this.VSList.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x37e, 0x1da);
            this.VSList.Size = size;
            this.VSList.StyleInfo = manager.GetString("VSList.StyleInfo");
            this.VSList.TabIndex = 40;
            this.VSList.VisualStyle = VisualStyle.Office2007Blue;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.Panel1.Controls.Add(this.TxtSearchMST);
            this.Panel1.Controls.Add(this.TxtSearchName);
            this.Panel1.Controls.Add(this.TxtSearchCode);
            this.Panel1.Dock = DockStyle.Bottom;
            point = new Point(0, 0x21e);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x37e, 0x1b);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x29;
            point = new Point(0x152, 3);
            this.TxtSearchMST.Location = point;
            this.TxtSearchMST.Name = "TxtSearchMST";
            size = new Size(90, 20);
            this.TxtSearchMST.Size = size;
            this.TxtSearchMST.TabIndex = 2;
            point = new Point(0x5c, 3);
            this.TxtSearchName.Location = point;
            this.TxtSearchName.Name = "TxtSearchName";
            size = new Size(0xf4, 20);
            this.TxtSearchName.Size = size;
            this.TxtSearchName.TabIndex = 1;
            point = new Point(0, 3);
            this.TxtSearchCode.Location = point;
            this.TxtSearchCode.Name = "TxtSearchCode";
            size = new Size(90, 20);
            this.TxtSearchCode.Size = size;
            this.TxtSearchCode.TabIndex = 0;
            this.b.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.b.Controls.Add(this.CboNhanVienKinhDoanh);
            this.b.Controls.Add(this.Label2);
            this.b.Controls.Add(this.NumHanThanhToan);
            this.b.Controls.Add(this.CboTinhThanh);
            this.b.Controls.Add(this.Label37);
            this.b.Controls.Add(this.CboNKD);
            this.b.Controls.Add(this.Label14);
            this.b.Controls.Add(this.CboLH);
            this.b.Controls.Add(this.Label5);
            this.b.Controls.Add(this.CboKV);
            this.b.Controls.Add(this.Label1);
            this.b.Controls.Add(this.CKHanThanhToan);
            this.b.Dock = DockStyle.Top;
            point = new Point(0, 0x19);
            this.b.Location = point;
            this.b.Name = "b";
            size = new Size(0x37e, 0x2b);
            this.b.Size = size;
            this.b.TabIndex = 0x27;
            this.CboNhanVienKinhDoanh.FormattingEnabled = true;
            point = new Point(0x2d7, 0x13);
            this.CboNhanVienKinhDoanh.Location = point;
            this.CboNhanVienKinhDoanh.Name = "CboNhanVienKinhDoanh";
            size = new Size(0x9c, 0x15);
            this.CboNhanVienKinhDoanh.Size = size;
            this.CboNhanVienKinhDoanh.TabIndex = 0xa5;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            this.Label2.ForeColor = Color.Black;
            point = new Point(0x2d4, 3);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x70, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0xa6;
            this.Label2.Text = "Nh\x00e2n vi\x00ean kinh doanh";
            point = new Point(0x286, 0x13);
            this.NumHanThanhToan.Location = point;
            this.NumHanThanhToan.Name = "NumHanThanhToan";
            size = new Size(0x4c, 20);
            this.NumHanThanhToan.Size = size;
            this.NumHanThanhToan.TabIndex = 0xa3;
            this.CboTinhThanh.FormattingEnabled = true;
            point = new Point(0x1fc, 0x13);
            this.CboTinhThanh.Location = point;
            this.CboTinhThanh.Name = "CboTinhThanh";
            size = new Size(0x86, 0x15);
            this.CboTinhThanh.Size = size;
            this.CboTinhThanh.TabIndex = 0xa1;
            this.Label37.AutoSize = true;
            this.Label37.BackColor = Color.Transparent;
            this.Label37.ForeColor = Color.Black;
            point = new Point(0x1f9, 3);
            this.Label37.Location = point;
            this.Label37.Name = "Label37";
            size = new Size(0x3a, 13);
            this.Label37.Size = size;
            this.Label37.TabIndex = 0xa2;
            this.Label37.Text = "Tỉnh th\x00e0nh";
            this.CboNKD.FormattingEnabled = true;
            point = new Point(0x147, 0x13);
            this.CboNKD.Location = point;
            this.CboNKD.Name = "CboNKD";
            size = new Size(0xaf, 0x15);
            this.CboNKD.Size = size;
            this.CboNKD.TabIndex = 0x8b;
            this.Label14.AutoSize = true;
            this.Label14.BackColor = Color.Transparent;
            this.Label14.ForeColor = Color.Black;
            point = new Point(0x144, 4);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(0x42, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 140;
            this.Label14.Text = "Ng\x00e0nh nghề";
            this.CboLH.FormattingEnabled = true;
            point = new Point(0xa6, 0x13);
            this.CboLH.Location = point;
            this.CboLH.Name = "CboLH";
            size = new Size(0x9d, 0x15);
            this.CboLH.Size = size;
            this.CboLH.TabIndex = 0x89;
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            this.Label5.ForeColor = Color.Black;
            point = new Point(0xa4, 4);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(50, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x8a;
            this.Label5.Text = "Loại h\x00ecnh";
            this.CboKV.FormattingEnabled = true;
            point = new Point(6, 0x13);
            this.CboKV.Location = point;
            this.CboKV.Name = "CboKV";
            size = new Size(0x9c, 0x15);
            this.CboKV.Size = size;
            this.CboKV.TabIndex = 0x87;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            this.Label1.ForeColor = Color.Black;
            point = new Point(3, 4);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x2f, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x88;
            this.Label1.Text = "Khu vực";
            this.CKHanThanhToan.AutoSize = true;
            this.CKHanThanhToan.BackColor = Color.Transparent;
            point = new Point(0x286, 3);
            this.CKHanThanhToan.Location = point;
            this.CKHanThanhToan.Name = "CKHanThanhToan";
            size = new Size(0x51, 0x11);
            this.CKHanThanhToan.Size = size;
            this.CKHanThanhToan.TabIndex = 0xa4;
            this.CKHanThanhToan.Text = "Thanh to\x00e1n";
            this.CKHanThanhToan.UseVisualStyleBackColor = false;
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdFind, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp, this.CmdRefresh });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x37e, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0x24;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdFind.Visible = false;
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.White;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x48, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "Trợ gi\x00fap";
            this.CmdRefresh.Image = (Image) manager.GetObject("CmdRefresh.Image");
            this.CmdRefresh.ImageTransparentColor = Color.White;
            this.CmdRefresh.Name = "CmdRefresh";
            size = new Size(0x42, 0x16);
            this.CmdRefresh.Size = size;
            this.CmdRefresh.Text = "Refresh";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x239);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.VSList);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.b);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.Name = "Frm_DMKhachHang";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "DM-0006             ";
            this.Text = "DANH MUC KHACH HANG";
            this.GroupBox2.ResumeLayout(false);
            this.C1FlexGrid1.EndInit();
            this.VSList.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.b.ResumeLayout(false);
            this.b.PerformLayout();
            this.NumHanThanhToan.EndInit();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            string strConditions = "";
            strConditions = " CharIndex('C',RTrim(Loai)) >= 1 ";
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboKV.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                strConditions = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(strConditions + " And KhoaKhuVuc = '", this.CboKV.SelectedValue), "'"));
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLH.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                strConditions = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(strConditions + " And KhoaLoaiKhachHang = '", this.CboLH.SelectedValue), "'"));
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNKD.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                strConditions = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(strConditions + " And KhoaNganh = '", this.CboNKD.SelectedValue), "'"));
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboTinhThanh.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                strConditions = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(strConditions + " And KhoaTinhThanh = '", this.CboTinhThanh.SelectedValue), "'"));
            }
            if (this.CKHanThanhToan.Checked)
            {
                strConditions = strConditions + " And HanThanhToan = " + Conversions.ToString(this.NumHanThanhToan.Value) + " ";
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhanVienKinhDoanh.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                strConditions = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(strConditions + " And KhoaNhanVienQuanLy = '", this.CboNhanVienKinhDoanh.SelectedValue), "'"));
            }
            this.cFrmData = new DataView(this.objDMKH.ShowListByField("Khoa|Ma|Ten" + modGeneral.H_LANGUAGE + " As Ten|MaSoThue|DienThoai|Fax|HanThanhToan|RTRIM(DiaChi) AS DiaChi ", strConditions, " Ma "));
            if (this.cFrmData != null)
            {
                this.VSList.DataSource = this.cFrmData;
                C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
                vSList.Cols[0].Visible = false;
                vSList.Cols[1].Width = 80;
                vSList.Cols[2].Width = 200;
                vSList.Cols[3].Width = 80;
                vSList.Cols[4].Width = 80;
                vSList.Cols[5].Width = 80;
                vSList.Cols[6].Width = 70;
                vSList.Cols[7].Width = 100;
                vSList[0, 1] = modGeneral.Tranlated("M\x00e3", "");
                vSList[0, 2] = modGeneral.Tranlated("T\x00ean", "");
                vSList[0, 3] = modGeneral.Tranlated("M\x00e3 số thuế", "");
                vSList[0, 4] = modGeneral.Tranlated("Điện thoại", "");
                vSList[0, 5] = modGeneral.Tranlated("Fax", "");
                vSList[0, 6] = modGeneral.Tranlated("Thanh to\x00e1n", "");
                vSList[0, 7] = modGeneral.Tranlated("Địa chỉ", "");
                vSList = null;
                if (this.VSList.Rows.Count > 1)
                {
                    this.cFrmKhoa = Conversions.ToString(this.VSList[1, 0]);
                }
                this.VSList.Styles.Alternate.BackColor = ProfessionalColors.ToolStripGradientMiddle;
            }
        }

        public void SearchKhachHang(string field, string str, string strSearch = "")
        {
            string str2 = field + " LIKE '%" + strSearch + str + "%'";
            this.cFrmData.RowFilter = str2;
            if (this.VSList.Rows.Count != 1)
            {
                this.VSList.Select(1, 0, 1, this.VSList.Cols.Count - 1);
            }
        }

        private void TxtSearchCode_TextChanged(object sender, EventArgs e)
        {
            this.SearchKhachHang("Ma", this.TxtSearchCode.Text, "");
        }

        private void TxtSearchMST_TextChanged(object sender, EventArgs e)
        {
            this.SearchKhachHang("MaSoThue", this.TxtSearchMST.Text, "");
        }

        private void TxtSearchName_TextChanged(object sender, EventArgs e)
        {
            this.SearchKhachHang("Ten", this.TxtSearchName.Text, "%");
        }

        public void VerifyGrid(string pTask)
        {
        }

        private void VSList_Click(object sender, EventArgs e)
        {
        }

        private void VSList_DoubleClick(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                MyProject.Forms.Frm_KhachHang.cFrmKhoa = Conversions.ToString(this.VSList[this.VSList.Row, 0]);
                MyProject.Forms.Frm_KhachHang.ShowDialog();
            }
        }

        private void VSList_SelChange(object sender, EventArgs e)
        {
            if (this.VSList.Row <= 0)
            {
                this.cFrmKhoa = "";
            }
            else
            {
                this.cFrmKhoa = Conversions.ToString(this.VSList[this.VSList.Row, 0]);
            }
        }

        internal virtual Panel b
        {
            [DebuggerNonUserCode]
            get
            {
                return this._b;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._b = value;
            }
        }

        internal virtual Button Button1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Button1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Button1 = value;
            }
        }

        internal virtual Button Button2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Button2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Button2 = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid C1FlexGrid1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1FlexGrid1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1FlexGrid1 = value;
            }
        }

        internal virtual ComboBox CboKV
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKV;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboKV_SelectedIndexChanged);
                if (this._CboKV != null)
                {
                    this._CboKV.SelectedIndexChanged -= handler;
                }
                this._CboKV = value;
                if (this._CboKV != null)
                {
                    this._CboKV.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboLH
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLH;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLH_SelectedIndexChanged);
                if (this._CboLH != null)
                {
                    this._CboLH.SelectedIndexChanged -= handler;
                }
                this._CboLH = value;
                if (this._CboLH != null)
                {
                    this._CboLH.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboNhanVienKinhDoanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNhanVienKinhDoanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboNhanVienKinhDoanh_SelectedIndexChanged);
                if (this._CboNhanVienKinhDoanh != null)
                {
                    this._CboNhanVienKinhDoanh.SelectedIndexChanged -= handler;
                }
                this._CboNhanVienKinhDoanh = value;
                if (this._CboNhanVienKinhDoanh != null)
                {
                    this._CboNhanVienKinhDoanh.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboNKD
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNKD;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboNKD_SelectedIndexChanged);
                if (this._CboNKD != null)
                {
                    this._CboNKD.SelectedIndexChanged -= handler;
                }
                this._CboNKD = value;
                if (this._CboNKD != null)
                {
                    this._CboNKD.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboTinhThanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTinhThanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboTinhThanh_SelectedIndexChanged);
                if (this._CboTinhThanh != null)
                {
                    this._CboTinhThanh.SelectedIndexChanged -= handler;
                }
                this._CboTinhThanh = value;
                if (this._CboTinhThanh != null)
                {
                    this._CboTinhThanh.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual CheckBox CheckBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CheckBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CheckBox1 = value;
            }
        }

        internal virtual CheckBox CKHanThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKHanThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKHanThanhToan = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdFind = value;
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHelp_Click);
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click -= handler;
                }
                this._CmdHelp = value;
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdRefresh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRefresh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdRefresh_Click);
                if (this._CmdRefresh != null)
                {
                    this._CmdRefresh.Click -= handler;
                }
                this._CmdRefresh = value;
                if (this._CmdRefresh != null)
                {
                    this._CmdRefresh.Click += handler;
                }
            }
        }

        internal virtual ComboBox ComboBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ComboBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ComboBox1 = value;
            }
        }

        internal virtual ComboBox ComboBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ComboBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ComboBox2 = value;
            }
        }

        internal virtual ComboBox ComboBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ComboBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ComboBox3 = value;
            }
        }

        internal virtual ComboBox ComboBox4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ComboBox4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ComboBox4 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label21
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label21;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label21 = value;
            }
        }

        internal virtual Label Label22
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label22;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label22 = value;
            }
        }

        internal virtual Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual Label Label24
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label24;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label24 = value;
            }
        }

        internal virtual Label Label25
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label25;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label25 = value;
            }
        }

        internal virtual Label Label26
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label26;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label26 = value;
            }
        }

        internal virtual Label Label27
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label27;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label27 = value;
            }
        }

        internal virtual Label Label28
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label28;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label28 = value;
            }
        }

        internal virtual Label Label29
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label29;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label29 = value;
            }
        }

        internal virtual Label Label30
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label30;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label30 = value;
            }
        }

        internal virtual Label Label31
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label31;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label31 = value;
            }
        }

        internal virtual Label Label32
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label32;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label32 = value;
            }
        }

        internal virtual Label Label33
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label33;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label33 = value;
            }
        }

        internal virtual Label Label34
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label34;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label34 = value;
            }
        }

        internal virtual Label Label35
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label35;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label35 = value;
            }
        }

        internal virtual Label Label36
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label36;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label36 = value;
            }
        }

        internal virtual Label Label37
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label37;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label37 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual NumericUpDown NumHanThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._NumHanThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._NumHanThanhToan = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual TextBox TextBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox1 = value;
            }
        }

        internal virtual TextBox TextBox10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox10 = value;
            }
        }

        internal virtual TextBox TextBox11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox11 = value;
            }
        }

        internal virtual TextBox TextBox12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox12 = value;
            }
        }

        internal virtual TextBox TextBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox2 = value;
            }
        }

        internal virtual TextBox TextBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox3 = value;
            }
        }

        internal virtual TextBox TextBox4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox4 = value;
            }
        }

        internal virtual TextBox TextBox5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox5 = value;
            }
        }

        internal virtual TextBox TextBox6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox6 = value;
            }
        }

        internal virtual TextBox TextBox7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox7 = value;
            }
        }

        internal virtual TextBox TextBox8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox8 = value;
            }
        }

        internal virtual TextBox TextBox9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox9 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual TextBox TxtSearchCode
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchCode;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchCode_TextChanged);
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged -= handler;
                }
                this._TxtSearchCode = value;
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchMST
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchMST;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchMST_TextChanged);
                if (this._TxtSearchMST != null)
                {
                    this._TxtSearchMST.TextChanged -= handler;
                }
                this._TxtSearchMST = value;
                if (this._TxtSearchMST != null)
                {
                    this._TxtSearchMST.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchName_TextChanged);
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged -= handler;
                }
                this._TxtSearchName = value;
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSList_DoubleClick);
                EventHandler handler2 = new EventHandler(this.VSList_Click);
                EventHandler handler3 = new EventHandler(this.VSList_SelChange);
                if (this._VSList != null)
                {
                    this._VSList.DoubleClick -= handler;
                    this._VSList.Click -= handler2;
                    this._VSList.SelChange -= handler3;
                }
                this._VSList = value;
                if (this._VSList != null)
                {
                    this._VSList.DoubleClick += handler;
                    this._VSList.Click += handler2;
                    this._VSList.SelChange += handler3;
                }
            }
        }
    }
}

